package com.chenjie.executor.day10;

/**
 * packageName com.chenjie.executor.day10
 *
 * @author chenjie
 * @version JDK 8
 * @className Main (此处以class为例)
 * @date 2024/5/27
 * @description TODO
 */
public class Main {
    public static void main(String[] args) {
        OneTask oneTask=new OneTask();
        Thread thread=new Thread(oneTask);
        thread.start();
        TwoTask twoTask=new TwoTask();
        twoTask.setThread(thread);
        Thread thread1=new Thread(twoTask);
        thread1.start();
        ThreeTask threeTask=new ThreeTask();
        Thread thread2=new Thread(threeTask);
        threeTask.setThread(thread1);
        thread2.start();
    }
}
